QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    controller/managercontroller.cpp \
    controller/merchantcontroller.cpp \
    controller/usercontroller.cpp \
    controller/windowcontroller.cpp \
    dao/approveexam.cpp \
    dao/daobase.cpp \
    dao/orderdao.cpp \
    dao/orderroledao.cpp \
    dao/organizationdao.cpp \
    dao/saledao.cpp \
    dao/userdao.cpp \
    dao/windowdao.cpp \
    business.cpp \
    sigwid.cpp \
    submitorder.cpp \
    test/testwindow.cpp \
    utils/database.cpp \
    main.cpp \
    client.cpp \
    manager.cpp \
    add_dish.cpp\
    utils/orderrolefectory.cpp \
    utils/salefectory.cpp \
    widget.cpp

HEADERS += \
    controller/managercontroller.h \
    controller/merchantcontroller.h \
    controller/usercontroller.h \
    controller/windowcontroller.h \
    dao/approveexam.h \
    dao/daobase.h \
    dao/orderdao.h \
    dao/orderroledao.h \
    dao/organizationdao.h \
    dao/saledao.h \
    dao/userdao.h \
    dao/windowdao.h \
    poco/bill.h \
    poco/charge.h \
    poco/charge/chargeBase.h \
    poco/order.h \
    poco/orderRole/mulOrderRole.h \
    poco/orderRole/subOrderRole.h \
    poco/orderRoleBase.h \
    poco/organizationInfo.h \
    poco/sale/saleSetMeal.h \
    poco/sale/saleUnit.h \
    poco/sale/saleWeight.h \
    poco/saleBase.h \
    poco/user.h \
    poco/windowInfo.h \
    submitorder.h \
    test/testwindow.h \
    utils/database.h \
    business.h \
    sigwid.h \
    client.h \
    manager.h\
    add_dish.h\
    utils/orderrolefectory.h \
    utils/salefectory.h \
    widget.h

FORMS += \
    business.ui \
    sigwid.ui \
    client.ui \
    manager.ui\
    add_dish.ui\
    submitorder.ui \
    test/testwindow.ui \
    widget.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    resource.qrc

QT+= sql
